
export const LoadingInstance = {
    _target: null, // 保存Loading实例
    _count: 0
  };

  /**
 * @description 关闭Loading层实例
 * 
 */
export function closeLoading() {
    if(LoadingInstance._count > 0) LoadingInstance._count--;
    if(LoadingInstance._count === 0) {
      LoadingInstance._target.close();
      LoadingInstance._target = null;
    }
  }
  